package com.example.assetmanagement.mapper;

import com.example.assetmanagement.domain.Backup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BackupMapper {

    List<Backup> selectPage(@Param("offset") int offset,
                            @Param("limit") int limit);

    long count();

    Backup selectById(@Param("id") Long id);

    int insert(Backup backup);

    int deleteById(@Param("id") Long id);
} 